<?php include('includes/header.php'); ?>
<?php include('includes/nav.php'); ?>
<div id="content">
<?php
include ("includes/userfunctions.php");
//=========================================================================================================================================
if (!isset ($_POST["username"]))
{
   showUserForm(ADDUSERSUBMITTEXT, ADDFUNCTION);
}
else
{
   if (validateUserForm(ADDUSERSUBMITTEXT))
   {
      $errmsg = userSaved;
      showUserForm(ADDUSERSUBMITTEXT, ADDFUNCTION);
   }
   else
   {
      showUserForm(ADDUSERSUBMITTEXT, ADDFUNCTION);
   }
}
//=========================================================================================================================================
?>
</div> <!-- end #content -->
<?php include('includes/sidebar.php'); ?>
<?php include('includes/footer.php'); ?>
